const mongoose = require("./db");
/* 2.在本地定义一个Schema和远程的数据库的字段映射 */
var UserSchema = new mongoose.Schema({
    userName: String,
    pwd:Number
}, {
    versionKey: false // You should be aware of the outcome after set to false
});
/* 3.创建数据模型,和数据库中的表映射,获取表   */
/* Top250Model  是我们获取的top250那张表 */
var UserModel = mongoose.model("User",UserSchema,"user")
module.exports = UserModel;